package com.bishe.tax.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 账薄表 ledger
 *
 * @author ruoyi
 * @date 2019-06-23
 */
public class Ledger extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	private Integer ledgerId;
	/**
	 * 时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date ledgerTime;
	/**
	 * 摘要
	 */
	private String ledgerRemake;
	/**
	 * 借记
	 */
	private BigDecimal ledgerDebit;
	/**
	 * 贷记
	 */
	private BigDecimal ledgerRedit;
	/**
	 * 总额
	 */
	private BigDecimal ledgerBalance;
	/**
	 * 类型
	 */
	private String ledgerType;
	/**
	 * 科目
	 */
	private String ledgerModel;
	/**
	 * 关联企业
	 */
	private Integer ledgerTaxpayer;
	/**
	 * 附件地址
	 */
	private String ledgerPath;

	public void setLedgerId(Integer ledgerId) {
		this.ledgerId = ledgerId;
	}

	public Integer getLedgerId() {
		return ledgerId;
	}

	public void setLedgerTime(Date ledgerTime) {
		this.ledgerTime = ledgerTime;
	}

	public Date getLedgerTime() {
		return ledgerTime;
	}

	public void setLedgerRemake(String ledgerRemake) {
		this.ledgerRemake = ledgerRemake;
	}

	public String getLedgerRemake() {
		return ledgerRemake;
	}

	public void setLedgerDebit(BigDecimal ledgerDebit) {
		this.ledgerDebit = ledgerDebit;
	}

	public BigDecimal getLedgerDebit() {
		return ledgerDebit;
	}

	public String getLedgerModel() {
		return ledgerModel;
	}

	public void setLedgerModel(String ledgerModel) {
		this.ledgerModel = ledgerModel;
	}

	public void setLedgerRedit(BigDecimal ledgerRedit) {
		this.ledgerRedit = ledgerRedit;
	}

	public BigDecimal getLedgerRedit() {
		return ledgerRedit;
	}

	public void setLedgerBalance(BigDecimal ledgerBalance) {
		this.ledgerBalance = ledgerBalance;
	}

	public BigDecimal getLedgerBalance() {
		return ledgerBalance;
	}

	public void setLedgerType(String ledgerType) {
		this.ledgerType = ledgerType;
	}

	public String getLedgerType() {
		return ledgerType;
	}

	public void setLedgerTaxpayer(Integer ledgerTaxpayer) {
		this.ledgerTaxpayer = ledgerTaxpayer;
	}

	public Integer getLedgerTaxpayer() {
		return ledgerTaxpayer;
	}

	public void setLedgerPath(String ledgerPath) {
		this.ledgerPath = ledgerPath;
	}

	public String getLedgerPath() {
		return ledgerPath;
	}

	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("ledgerId", getLedgerId())
				.append("ledgerTime", getLedgerTime()).append("ledgerRemake", getLedgerRemake())
				.append("ledgerDebit", getLedgerDebit()).append("ledgerRedit", getLedgerRedit())
				.append("ledgerBalance", getLedgerBalance()).append("ledgerType", getLedgerType())
				.append("ledgerTaxpayer", getLedgerTaxpayer()).append("ledgerPath", getLedgerPath()).toString();
	}
}
